import 'package:flutterproject/generated/json/base/json_convert_content.dart';
import 'package:flutterproject/page/setting/children/address/data/address_bean.dart';

AddressBean $AddressBeanFromJson(Map<String, dynamic> json) {
	final AddressBean addressBean = AddressBean();
	final String? base = jsonConvert.convert<String>(json['base']);
	if (base != null) {
		addressBean.base = base;
	}
	final String? detail = jsonConvert.convert<String>(json['detail']);
	if (detail != null) {
		addressBean.detail = detail;
	}
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		addressBean.id = id;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		addressBean.name = name;
	}
	final String? tel = jsonConvert.convert<String>(json['tel']);
	if (tel != null) {
		addressBean.tel = tel;
	}
	final int? top = jsonConvert.convert<int>(json['top']);
	if (top != null) {
		addressBean.top = top;
	}
	return addressBean;
}

Map<String, dynamic> $AddressBeanToJson(AddressBean entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['base'] = entity.base;
	data['detail'] = entity.detail;
	data['id'] = entity.id;
	data['name'] = entity.name;
	data['tel'] = entity.tel;
	data['top'] = entity.top;
	return data;
}